import service from "../utils/request";
import ajax from '../utils/ajax'

    /*
     *  获取项目接口
     */
    export function getProject() {
        return service.request({
            url:'/charity/api/rest/Project',
            method:'get',
        })
    } 

     /*
     *  获取项目接口
     */
    //  export function addProject() {
    //     return service.request({
    //         url:'/charity/api/rest/Project',
    //         method:'post',
    //     })
    // } 
    export const addProject=(model)=>ajax('http://localhost:3000/charity/api/rest/Project',model,'POST')
